package com.solace.selenium.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.solace.selenium.entity.LogTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LogTimeMapper extends BaseMapper<LogTime> {
    @Select("select max(time) from log_time")
    Long getMax();
    @Select("select count(*) from log_time")
    Long getCount();
    @Select("DELETE FROM log_time WHERE time <> (select max(time) from log_time)")
    void removeMaxTime();
}